package com.feisuanyz.dto;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 票务验证查询对象
 */
@Data
public class TicketValidationQuery {

    private Integer ticketId;

    @NotNull(message = "关联的事件ID不能为空")
    private Integer eventId;

    @Min(value = 1, message = "可用票数必须为正整数")
    private Integer availableTickets;

    @Min(value = 0, message = "剩余票数必须为非负整数")
    private Integer remainingTickets;
}